<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../lib/vue.js"></script>
</head>

<body>
  <div id="app">
    <mark>v-bind 的输入框 不能双向绑定</mark>
    <input type="text" style="width: 100%;font-size: 36px;" :value="msg" />
    <!-- 据说 v-model 只能运用与表单元素 -->
    <mark>v-model 的输入框 双向绑定</mark>
    <input type="text" style="width: 100%;font-size: 36px;" v-model="msg" />
  </div>
</body>
<script>
  var vm = new Vue({
    el: '#app',
    data: {
      msg: "hello world"
    }
  })
</script>

</html>